package com.example.repository;

import com.example.entity.JobEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface JobRepository extends JpaRepository<JobEntity, Long> {
    JobEntity findByJobNameAndJobGroup(String jobName, String jobGroup);
    List<JobEntity> findByJobGroup(String jobGroup);
    boolean existsByJobNameAndJobGroup(String jobName, String jobGroup);
    List<JobEntity> findByStatus(String status);
}